package 线程的状态;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-09-22
 * Time: 16:23
 */
public class ThreadDemo4 {


    public static void main(String[] args) {
        //使用匿名的Runnable实现类
        Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("我是run方法");
            }
        });
        //启动线程
        t.start();
    }

}
